package oceanlife;

public class PowTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int loopCount = 1000000;
		double x = 1452.5564;
		double y = 4;
		double dump;
		long time = System.currentTimeMillis();
		for(int i = 0;i < loopCount;i++){
			dump = x*x*x*x;
		}
		long newTime = System.currentTimeMillis();
		System.out.println(newTime-time);
		time = System.currentTimeMillis();
		for(int i = 0;i < loopCount;i++){
			dump = Math.pow(x,Integer.MAX_VALUE);
		}
		newTime = System.currentTimeMillis();
		System.out.println(newTime-time);
		time = System.currentTimeMillis();
		for(int i = 0;i < loopCount;i++){
			dump = Math.pow(x,Double.MAX_VALUE-i);
		}
		newTime = System.currentTimeMillis();
		System.out.println(newTime-time);

	}

}
